home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000124_dobbinsm@nc.rr.com_Fri Feb 27 14:53:17 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!panix!news.linkpendium.com!news.glorb.com!postnews1.google.com!not-for-mail
  2. From: dobbinsm@nc.rr.com (Matthew Dobbins)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Comparing a file function output with built in variables
  5. Date: 27 Feb 2004 11:32:59 -0800
  6. Organization: http://groups.google.com
  7. Lines: 29
  8. Message-ID: <bb076936.0402271132.6b6e3c53@posting.google.com>
  9. NNTP-Posting-Host: 24.211.134.32
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Trace: posting.google.com 1077910379 24679 127.0.0.1 (27 Feb 2004 19:32:59 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Fri, 27 Feb 2004 19:32:59 +0000 (UTC)
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14829
  16.  
  17. Hello everyone!
  18.  
  19. I am writing a client/server kermit script to send a file from one
  20. location to another, but I only want to send if the file has changed. 
  21. To overcome this, I decided to compare the md5sum output of the two
  22. files.  If they are different, I will send.
  23.  
  24. I have the md5sum of the server file (the new file) on the remote
  25. machine in the built in variable \v(inmatch) (i sent it this using
  26. input/output commands).  I would like to compare the \v(inmatch) to
  27. \f_getblock(\m(channel),32).
  28.  
  29. To make that last statement clear, here is what I'm doing on the
  30. remote machine to get the md5sum of the file to be updated:
  31.  
  32. run md5sum ad.sxi > sum  (get the md4sum of the ad file and put into
  33. file sum)
  34. file open channel sum (open file for reading in kermit)
  35. ?COMPARE? \v(inmatch) with \f_getblock(\m(channel),32)  (they are both
  36. the same types - 32 long)
  37. IF the compare is true, i want to hang up, otherwise send
  38.  
  39. Can anyone help me with the compare?  I have searched the
  40. documentation and cannot find anything that will do this.  Any
  41. suggestions?
  42.  
  43. Thanks.
  44.  
  45. matt
  46.